package com.laoxu.test.springcloud.client;

import com.laoxu.test.springcloud.model.User;
import com.laoxu.test.springcloud.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author laoxu
 * @Date 2020/8/15 15:56
 **/
@FeignClient(value = "user-api")
public interface UserClient {
    @GetMapping("/api/user/{id}")
    Result<User> getById(@PathVariable(value = "id") int id);
}
